package com.seata.stock.controller;


import com.seata.stock.service.StockService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class StockController {

    @Resource
    private StockService stockService;

    @GetMapping("/stock/decr")
    public String decr() {
        stockService.decr();
        return "-1 -1 -1";
    }




}
